<div class="account-wrapper" ng-controller="communityEditCtrl">
    <div class="account-body">
        <h4>编辑小区</h4>

        <form class="form account-form">

            <div class="form-group">
                <label class="control-label" for="textinput">小区名称：</label>
                <input class="form-control" ng-model="community.communityName" required tabindex="4">
            </div>
            <div class="form-group">
                <label class="control-label" for="textinput">小区地址：</label>
                <input class="form-control" ng-model="community.communityAddress" required tabindex="5">
            </div>

            <div class="form-group">
                <label class="control-label" for="textinput">户数：</label>
                <input class="form-control" ng-model="community.households" required tabindex="5">
            </div>
            <div class="form-group">
                <label class="control-label" for="textinput">邮编：</label>
                <input class="form-control" ng-model="community.communityPostCode" required tabindex="5">
            </div>
            <div class="form-group">
                <label class="control-label" for="textinput">常用电话：</label>

                <div ng-repeat="m in community.phoneList">
                    <input ng-model="m.name" data-provide="typeahead"/><input ng-model="m.phoneNo"
                                                                              data-provide="typeahead"/>
                    <button ng-click="deletePhoneNo($index)">删除</button>
                </div>
                <button ng-click="addPhoneNo()">添加</button>
            </div>
            <div class="form-group">
                <label class="control-label" for="textinput">是否显示单元号开关：</label>
                <input type="checkbox" ng-model="community.unitSwitch" ng-checked="community.unitSwitch">
            </div>
            <div class="form-group">
                <a ng-click="gotoCommunityListPage()" class="btn btn-xs btn-primary">取消</a>
                <a ng-click="updateCommunity()" class="btn btn-xs btn-primary">确认</a>
            </div>
        </form>
    </div>
</div>